import Vue from 'vue'
import App from './App.vue'

//引入插件
import vueResource from 'vue-resource'

//引入VueRouter
import VueRouter from 'vue-router'

//引入路由器
import router from './router'
//引入store
import store from './store'

Vue.config.productionTip = false

Vue.use(vueResource)
Vue.use(VueRouter)

new Vue({
  el: '#app',
  render: h => h(App),
  store,
  router,
  beforeCreate() {
    Vue.prototype.$bus = this
  },
})